package ooday02.JavaCodeDemo;

public class AnimalTest {
    public static void main(String[] args) {
        Animal animal1 = new Animal("动物", 5, "黑");
        animal1.eat();
        animal1.drink();
        System.out.println();

        Dog dog1 = new Dog("小强", 4, "白");
        dog1.eat();
        dog1.drink();
        dog1.lookHome();
        System.out.println();

        Chick chick1 = new Chick("小叮当", 3, "红");
        chick1.eat();
        chick1.drink();
        chick1.layEggs();
        System.out.println();

        Fish fish1 = new Fish("小个子", 2, "青");
        fish1.eat();
        fish1.drink();
    }
}
